Skip to content

Could apc.ttl be used rather than the hourly cleanup? #56

@nickchomey

Description

@nickchomey

Inspecting the sqlite_delete_old function, i see that it simply clears the entire apcu cache each hour, which seems unnecessary. Perhaps rather than that, we could make use of the apcu.ttl config option?

Though I suppose this would require modifying the php.ini file, which is beyond most people's ability and even possibility on many hosts. Still, for those who DO set apcu.ttl, the plugin should probably respect that somehow - maybe check if it is set, and if so dont clear the cache?

ps there's also an outstanding PR to add a proper LRU eviction policy

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions