Questions tagged [phpfastcache]

PhpFastCache is a PHP based high-performance, distributed object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

23 questions
0
votes
0 answers

Best place to create a cache folder in a Laravel 5.1 environment for third party libraries to write

I am facing the following issue in the production server (not in local or dev): production.ERROR: phpFastCache\Exceptions\phpFastCacheDriverException: PLEASE CREATE OR CHMOD…
0
votes
1 answer

phpfastcache V6 + redis - possible to set prefix?

When I talk to redis directly I can use Redis::OPT_PREFIX to ensure i'm not overwriting keys. e.g. namespacing .. $redis = new Redis(); if ($redis->connect('127.0.0.1', 6379)) { $redis->setOption(Redis::OPT_PREFIX, 'FooBar9000:'); …
frumbert
  • 2,323
  • 5
  • 30
  • 61
0
votes
1 answer

How to cache a query with phpFastCache without Composer?

I am trying to use phpFastCache for all caching needs but I really don't understand how to use it. I understand their are examples and yes I have tried them and they are successful but it's not helping me in terms of what I need to do. I am trying…
Tyler Shannon
  • 279
  • 1
  • 4
  • 16
0
votes
3 answers

Missing cache items [via phpfastcache] using Server Side Events

I'm using Server-Sent Events, to print messages for user. In infinite loop, every 10 seconds I check if there is any new item in cache to broadcast: $messages_to_broadcast = $this->_cache->getItemsByTag('inbox_message'); foreach…
0
votes
1 answer

Redis driver with phpfastcache bundle

I am going to use phpfastcache-bundle with symfony3. I have found a documentation how to use it with file driver. But docs are poor on other drivers. How can I setup a redis driver with symfony?
FreeLightman
  • 2,224
  • 2
  • 27
  • 42
0
votes
2 answers

Switching off subdomains in phpfastcache

I'm using phpfastcache with files strategy. I'm caching sql queries. As I see phpfastcache creates folders with subdomain name (ex. www.domain.pl). I have admin panel in admin.domain.pl which calls api.domain.pl. Problem is that when I, for…
piernik
  • 3,507
  • 3
  • 42
  • 84
0
votes
1 answer

Setting memcached host/port in PHPFastCache

I'm currently able to use Memcached proper using the Memcached class. Setting the port for Memcached seems to work like this; $mem = new memcached(); $mem->addServer("127.0.0.1", 3333); The memcached class connects properly to the memcached server…
Sefam
  • 1,712
  • 2
  • 23
  • 40
0
votes
1 answer

phpfastcache for caching dataset

I have a web application built using PHP and MySQL. Now the database is hitting the red line due to the load. I am trying to use phpfastcache to store set of data into redis and reduce the load on the DB. The data set is from multiple tables and may…
GBhat
  • 37
  • 6
1
2