How to clear OpenX-hosted cache? - caching

well it is easy to set/clear OpenX cache by clearing openx/var/cache directory or by setting cache time by navigating to Configuration > Global Settings > Banner Delivery Settings and set cache time, BUT is it possible to clear cache for the openx-hosted version ??

you can't. You need to be admin... Wait 20 min or install openx on your server.

Related

How to flush the APC cache in Prestashop

In the backoffice of Prestashop, there is no option to flush the cache (Advanced parameters - Performance), it is only possible to disable the cache.
Different types of cache and how to flush them
Smarty compile cache: Delete the subfolders under cache/smarty/compile
Smarty template cache: Delete the subfolders under cache/smarty/cache
Cache using Filesystem: Delete the subfolders under cache/cachefs
But how can I go about flushing the cache if I use APC Cache ?
A subsidiary question: Is it possible to set a global ttl ? By default, everything gets cached forever.
To flush the APC user cache, you have to install the administration interface for APC (apc.php). This file is bundled with the download for APC. Just copy it to a folder that is accessible from the web, the edit it to set a password.
After that, you can connect and flush the cache when needed. It is possible to flush the system cache and the user cache separately.
You could write a simple php function: add all cache dirs to array and check it:
foreach ($cacheDirs as $dir)
if (file_exists($dir))
$this->emptydir($dir);
Other way, use a free module to clean it: http://www.prestatoolbox.com/free-prestashop-modules/122-clear-the-cache-of-prestashop.html

How to change Infinispan cache settings after it is created?

In my application i'm using Infinispan 5.3 version and I want to change setting after cache is initialized. Default settings will be loaded from xml file and some of the settings ( ex : eviction maxEntries, lifespan, etc ) should be able to change any time of application running (This is changed by sysadmin). Is there way to changed settings of already created cache ?
I tried EmbeddedCacheManager.defineConfiguration(String cacheName, Configuration configurationOverride); but this has no effect on already created cache.
Please, take into account that in the Infinispan version 5.3 there is no possibility to change cache configuration "on the fly". You need to restart your service with new configuration in case of any wanted change.
This is something the community might want to work on in the future. However, such a task is not easy because you need to figure out how to correctly deal with affected data immediately after the configuration change.
Feel free to raise new feature request: https://issues.jboss.org/browse/ISPN/

Problems with APC with Magento 1.9

I just had my server people install APC to try to decrease the amount of memory that my server uses per person.
I went into my local.xml and entered in the following within the Global mark.
<cache>
<backend>apc</backend>
<slow_backend>database</slow_backend>
<prefix>MYSTORE_</prefix>
</cache>
</global>
I then reset apache.
Then in my php.ini file I have the following:
;APC SETTINGS
apc.enabled=1
apc.shm_size=512M
apc.num_files_hint=10000
apc.user_entries_hint=10000
apc.max_file_size=10M
apc.stat=0
apc.optimization=0
apc.shm_segments=1
apc.enable_cli=1
apc.cache_by_default=1
apc.include_once_override=1
I was able to increase the size and actually enter in these settings buy updating the master php.ini on my server (rather than the local one).
However, when I go into system cached entires it only shows hidden/apc.php and on the dashboard it only shows the 1 file.
Can you guys please help me figure this out? I'm running magento 1.9.1, PHP 5.4.35, APC 3.1.13, Apache 2.2.29.
Thanks!
You're missing
extension=apc.so
Also APC is at the server/php level. The cache block in the XML is to configure higher level caching systems such as Redis.

Symfony 1.4 completely remove the use of configuration cache

I have to host my Symfony 1.4 project in an environment where there is no write permission to any directory.
I want to completely disable the use of cache in Symfony as my application won't run if its enabled.
I searched the internet and moved my cache dir to system TEMP but that won't solve my problem as i am unable to clear it when i make any configuration changes, which makes my application dead.
It won't have much traffic, maybe only 1 user always, so performance is not an issue.
Kindly guide me how can i run my symfony project without any kind of cache.
I can follow the instructions and capable of doing core level changes.
-Regards
Remove the line in your filters.yml file for you application that represents cache.
rendering: ~
security: ~
# insert your own filters here
profile:
class: profileFilter
# TAKE THIS LINE OUT
cache: ~
execution: ~

When is OpenAFS cache cleared?

Let's say I have a bunch of users who all access the same set of files, that have permission system:anyuser. User1 logs in and accesses some files, and then logs out. When User2 logs in and tries to access the same files, will the cache serve the files, or will it be cleared between users?
The cache should serve the files (in the example above).
How long a file will persist in the OpenAFS cache manager depends on how the client is configured, variables include the configured size of the cache, whether or not the memcache feature is enabled, and how "busy" the client is.
If OpenAFS memcache (cache chunks stored in RAM) is enabled, then the cache is cleared upon reboot. With the more traditional disk cache, the cache can persist across reboots. Aside from that key difference files persist in the cache following the same basic rules. The cache is a fixed size stack, recently accessed files stay in the cache and older files are purged as needed when newer files are requested.
More details are available in the OpenAFS wiki:
http://wiki.openafs.org/

Resources