Comments (6)
You can use $cache->delete("keyword");
$cache->clean();
OR:
Delete folder cache.storage , this folder is store at current location of phpfastcache.php if you are using CGI , suPHP, and it store at tmp / upload folder of server if you are using DSO.
Read the document examples/2.setup.php , and you can setup custom path for this folder.
from phpfastcache.
Ah okay thanks! The cache.storage folder is what I was looking for. Specifically I was wanting to manually delete the cache file/folder at the command line or via SFTP. Thanks
from phpfastcache.
Hmmm where is the cache.storage supposed to be? I don't see it at the same location as phpfastcache.php
... My setup is:
require_once('phpfastcache/phpfastcache.php');
phpFastCache::setup('storage','auto');
$cache = phpFastCache();
Am I doing something wrong? Where else would the cache file be?
from phpfastcache.
if your php run as suPHP it will be in folder phpfastcache
if you're using DSO as PHP, it will be under /tmp or upload folder.
phpFastCache doesn't want to border you about CHMOD 0777 for that folder, so it automatic pick a right way with good security and have writeable for you.
If you want custom path for that folder, look at examples/2.setup.php <-- π―
You can do:
phpFastCache::setup("path", dirname(FILE));
from phpfastcache.
how to save all cache to one folder , and not create one folder to one cache
from phpfastcache.
set the storage to "sqlite" , it will save to sqlite 1 - 2 files only.
Because Linux / Windows directory only allow around 30,000 files I think.
So, if you don't split them to multiple folder, the cache folder will dead after couple weeks, and also it's very diffucuti to clean up a folder have more than 10,000 files, slow and cost memory when reading everything from that folder. In real world, 1 folder contant all cache files is bad. Use "sqlite" / "memcached" / "memcache" if you don't want to deal with files.
I suggest sqlite
from phpfastcache.
Related Issues (20)
- Website broken - Unable to browse any documentation page HOT 6
- PDO Cache is case insensitive? HOT 4
- Proper way to preload cache items with crontab HOT 14
- Memcached driver compress_data cache miss HOT 4
- Config('path') - Can't declare path from the parent directory of index file directory. HOT 6
- Installation fails: 'Fatal error: Uncaught Error: Class "CacheManager" not found ...' HOT 3
- getItemsByTag() - empty after one item has expired HOT 10
- CanΒ΄t retrieve phpfastcache 9.1.3 thru composer HOT 7
- Saving an item that is already in the pool after its expiration time fails HOT 13
- 2 million data cache? HOT 5
- Storing and retrieving mysql result arrays using Psr16Adapter HOT 4
- Deleting cache by tag without loading all its cache HOT 3
- cache not clearing manually in html HOT 2
- Disable 'securityKey' and adapter directory. HOT 9
- Cache clear() not working with Redis, getItem() still returns data HOT 2
- How to use memcache on v8 ? HOT 3
- Support custom native RedisCluster client HOT 9
- TypeError Phpfastcache\Drivers\Files\Driver::driverRead(): Return value must be of type ?array, bool returned HOT 13
- Memory size exhausted by deleting by Tags HOT 10
- Save - Inside workerman event threads Save() throws fopen() error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpfastcache.