heiseonline / shariff-backend-php

👮 PHP backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
134 stars 44 forks source link

[Feature Request] Support PSR-6 Caching #105

Closed core23 closed 5 years ago

core23 commented 8 years ago

It would be a good idea to implement the PSR caching interface, this would remove the hard dependency to zend and allows you to change the caching library.

http://www.php-fig.org/psr/psr-6/

liayn commented 8 years ago

We already have an intermediate step by having the CacheInterface I introduced back in the days. I need that in our TYPO3 integration, where I remove the zend dependencies completely and stick the TYPO3 caching framework into place. That works like a charme as the users can simply use the "Clear caches" button of the TYPO3 backend.

core23 commented 8 years ago

The problem is the composer file, where the zend dependency is loaded, even if you don't need it: https://github.com/heiseonline/shariff-backend-php/blob/master/composer.json#L23

liayn commented 8 years ago

where I remove the zend dependencies completely

I adjust the composer.json in my TYPO3 branch to get rid of the zend stuff.

liayn commented 8 years ago

I of course appreciate following as many standards as possible.

liayn commented 8 years ago

Strange enough zendcache is listed as psr/cache dependent, even though it is not required... weird https://packagist.org/packages/psr/cache/dependents?page=10

liayn commented 6 years ago

My last comment explains that way: zendcache requires psr/cache in branch dev-develop only.