[serendipity-cvs] [s9y/Serendipity] c81bf9: Use custom cache implementation (#883)

onli via php-blog-cvs <[email protected]> Mon, 23 Jun 2025 07:09:57 -0700
Newsgroups gmane.comp.serendipity.cvs
Message-ID <s9y/Serendipity/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/s9y/Serendipity
  Commit: c81bf957bfe943bb8122d4861ab092c632f431ae
      https://github.com/s9y/Serendipity/commit/c81bf957bfe943bb8122d4861ab092c632f431ae
  Author: onli <[email protected]>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M bundled-libs/composer/autoload_classmap.php
    M bundled-libs/composer/autoload_psr4.php
    M bundled-libs/composer/autoload_static.php
    M bundled-libs/composer/installed.json
    M bundled-libs/composer/installed.php
    R bundled-libs/psr/simple-cache/LICENSE.md
    R bundled-libs/psr/simple-cache/README.md
    R bundled-libs/psr/simple-cache/composer.json
    R bundled-libs/psr/simple-cache/src/CacheException.php
    R bundled-libs/psr/simple-cache/src/CacheInterface.php
    R bundled-libs/psr/simple-cache/src/InvalidArgumentException.php
    R bundled-libs/voku/simple-cache/CHANGELOG.md
    R bundled-libs/voku/simple-cache/LICENSE
    R bundled-libs/voku/simple-cache/README.md
    R bundled-libs/voku/simple-cache/composer.json
    R bundled-libs/voku/simple-cache/phpstan.neon
    R bundled-libs/voku/simple-cache/renovate.json
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterApc.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterApcu.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterArray.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterFile.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterFileAbstract.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterFileSimple.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterMemcache.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterMemcached.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterOpCache.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterPredis.php
    R bundled-libs/voku/simple-cache/src/voku/cache/AdapterXcache.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Cache.php
    R bundled-libs/voku/simple-cache/src/voku/cache/CacheAdapterAutoManager.php
    R bundled-libs/voku/simple-cache/src/voku/cache/CacheChain.php
    R bundled-libs/voku/simple-cache/src/voku/cache/CachePsr16.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/ChmodException.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/FileErrorExceptionInterface.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/InvalidArgumentException.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/RenameException.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/RuntimeException.php
    R bundled-libs/voku/simple-cache/src/voku/cache/Exception/WriteContentException.php
    R bundled-libs/voku/simple-cache/src/voku/cache/SerializerDefault.php
    R bundled-libs/voku/simple-cache/src/voku/cache/SerializerIgbinary.php
    R bundled-libs/voku/simple-cache/src/voku/cache/SerializerMsgpack.php
    R bundled-libs/voku/simple-cache/src/voku/cache/SerializerNo.php
    R bundled-libs/voku/simple-cache/src/voku/cache/iAdapter.php
    R bundled-libs/voku/simple-cache/src/voku/cache/iCache.php
    R bundled-libs/voku/simple-cache/src/voku/cache/iSerializer.php
    M composer.json
    M composer.lock
    M docs/NEWS
    M include/functions.inc.php
    M include/functions_config.inc.php
    M include/functions_entries.inc.php
    M include/functions_installer.inc.php

  Log Message:
  -----------
  Use custom cache implementation (#883)

* Init simple file cache

* Remove voku/simple-cache

* Add APCu as priority cache, if available

* Add ttl to file system cache
Make this simple by hardocding the ttl to one hour. Otherwise we would have to store the ttl of each cache entry somewhere.

* Prevent filesystem cache overflow (see #637)

* Do not count twice

* Remove unused serendipity_applyCacheLimits return values

* Clean cache when disabling it by always cleaning on config change
Fixes #744

* Move cache to printEntries function for better performance

* Fix: On APCu cache mode the cache clean function could error out
Trying to delete templates_c/apcu

* Fix cached entries being mixed for admins and regular visitors

* document changes



To unsubscribe from these emails, change your notification settings at https://github.com/s9y/Serendipity/settings/notifications