Author Topic: How to enable xcache in abantecart?  (Read 5587 times)

Offline smallfish

  • Full Member
  • ***
  • Posts: 129
  • Karma: +15/-2
    • View Profile
How to enable xcache in abantecart?
« on: December 23, 2016, 04:29:06 AM »
I have modify the /system/config.php
define('CACHE_DRIVER', 'file'); to define('CACHE_DRIVER', 'xcache');
But it seems not working...
Xcache is already enable in php.

After I tried to clear the cache in backend admin, the HTTP ERROR 500 was occurred.
The frontstore had no error, but didn't see any effect on frontend.

How can I setup xcache in abantecart and make it working!?


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to enable xcache in abantecart?
« Reply #1 on: December 23, 2016, 05:17:20 AM »
tried to open file of xcache driver public_html/core/cache/xcache.php and reading comment at the top:
Code: [Select]
/**
 * XCache driver
 *
 * NOTE: to use this driver put lines belong into your system/config.php

define('CACHE_DRIVER', 'xcache');
define('CACHE_SECRET', 'your_secret_key');

Did you tried to do this?


“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline smallfish

  • Full Member
  • ***
  • Posts: 129
  • Karma: +15/-2
    • View Profile
Re: How to enable xcache in abantecart?
« Reply #2 on: December 28, 2016, 10:55:20 PM »
Should I also put this line in the file?
define('CACHE_SECRET', 'your_secret_key');

tried to open file of xcache driver public_html/core/cache/xcache.php and reading comment at the top:
Code: [Select]
/**
 * XCache driver
 *
 * NOTE: to use this driver put lines belong into your system/config.php

define('CACHE_DRIVER', 'xcache');
define('CACHE_SECRET', 'your_secret_key');

Did you tried to do this?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to enable xcache in abantecart?
« Reply #3 on: December 30, 2016, 04:45:05 AM »
Sure. You have to use secret key for cache by security reason.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

CTGO.co

  • Guest
Re: How to enable xcache in abantecart?
« Reply #4 on: December 12, 2018, 08:11:48 AM »
i have a question about adding:  lines belong into your system/config.php . how to do that?? any tutorial or template for this??

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to enable xcache in abantecart?
« Reply #5 on: December 12, 2018, 08:29:15 AM »
i have a question about adding:  lines belong into your system/config.php . how to do that?? any tutorial or template for this??

what tutorial? For file opening via editor and adding lines? ???

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

CTGO.co

  • Guest
Re: How to enable xcache in abantecart?
« Reply #6 on: December 12, 2018, 08:31:53 AM »
i have a question about adding:  lines belong into your system/config.php . how to do that?? any tutorial or template for this??

what tutorial? For file opening via editor and adding lines? ???


I am asking because i don't know how to add lines which mentioned in that NOTE as also i am still learning too.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to enable xcache in abantecart?
« Reply #7 on: December 12, 2018, 08:35:09 AM »
I am asking because i don't know how to add lines which mentioned in that NOTE as also i am still learning too.

just open your file public_html/system/config.php via cPanel FileManager
and paste this lines into it at the end
Code: [Select]
define('CACHE_DRIVER', 'xcache');
define('CACHE_SECRET', 'your_secret_key')

where 'your_secret_key' is your secret key for xcache  :)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

CTGO.co

  • Guest
Re: How to enable xcache in abantecart?
« Reply #8 on: April 05, 2019, 05:09:21 AM »



where 'your_secret_key' is your secret key for xcache  :)
[/quote]

Hi!

where can i find this??

CTGO.co

  • Guest
Re: How to enable xcache in abantecart?
« Reply #9 on: April 05, 2019, 05:11:22 AM »
I am asking because i don't know how to add lines which mentioned in that NOTE as also i am still learning too.

just open your file public_html/system/config.php via cPanel FileManager
and paste this lines into it at the end
Code: [Select]
define('CACHE_DRIVER', 'xcache');
define('CACHE_SECRET', 'your_secret_key')

where 'your_secret_key' is your secret key for xcache  :)

Hi!

where can i find this??

 

Powered by SMFPacks Social Login Mod