Remove Library::RebuildCache

This commit is contained in:
Mike Colagrosso 2024-07-14 12:39:04 -06:00 committed by Alex Cabal
parent f4a19a2d12
commit ec26e7f9af
2 changed files with 2 additions and 144 deletions

View file

@ -4,10 +4,10 @@ usage(){
echo -n
fmt <<EOF
DESCRIPTION
Rebuild one of three caches stored in APCu for the standardebooks.org FPM pool.
Rebuild one of the caches stored in APCu for the standardebooks.org FPM pool.
USAGE
rebuild-cache {library,bulk-downloads,feeds}
rebuild-cache {bulk-downloads,feeds}
EOF
exit 1
}
@ -27,10 +27,6 @@ fi
type="$1"
if [ "${type}" = "library" ]; then
echo "<?php require_once('Core.php'); Library::RebuildCache(); ?>" > /tmp/rebuild-cache.php
fi
if [ "${type}" = "bulk-downloads" ]; then
echo "<?php require_once('Core.php'); Library::RebuildBulkDownloadsCache(); ?>" > /tmp/rebuild-cache.php
fi