Osclass Documentation
Download OslcassCodeIssuesSupport Forum
Latest
Latest
  • Mindstellar Osclass
  • Beginners
    • Install
    • Updating Osclass
    • Osclass Cron
  • Configuring Osclass
    • Mail Server
    • Installing Locations
    • Increase PHP memory limit
    • Improving Search
    • Configure Cache
  • Developers
    • Basic Osclass
      • Contribute to Osclass
      • Coding Style
      • Debug PHP Errors
      • Debug SQL Queries
      • How to write a bug report
      • Database model and diagram
    • Plugins and Themes
      • Auto-update themes and plugins
      • Administrator Menus
      • Admin Toolbar
      • Style and scripts enqueue functions
      • Routes
Powered by GitBook
On this page
  • APC / APCu
  • MEMCACHE

Was this helpful?

Export as PDF
  1. Configuring Osclass

Configure Cache

NOTE: before enabling cache make sure you have installed and enabled the cache extension.

APC / APCu

You need to edit your config.php file and the following line

   define('OSC_CACHE', 'apc');

MEMCACHE

You need to know ip and port of the machine/s where memcached service is installed and then add the following lines to the file config.php

   define('OSC_CACHE', 'memcache');
   $_cache_config[] = array(
       'default_host'      => '127.0.0.1',
       'default_port'      => 11211,
       'default_weight'    => 1
   );
PreviousImproving SearchNextBasic Osclass

Last updated 5 years ago

Was this helpful?