81 Topics

Member Avatar for
Member Avatar for emmanuelkatto

Hi everyone, I am Emmanuel Katto. I'm building a high-traffic web application that requires fast and efficient data retrieval from a relational database. To improve performance, I'm considering implementing a caching layer using Redis. But, I'm not sure about the best approach to design and integrate the caching layer into …

Member Avatar for Dani
0
20
Member Avatar for baig772

I am trying to implement multi authentication in `laravel5.2`. I am following [this article](http://saravanan.tomrain.com/multiauth-in-laravel-5-0/) My **Auth.php** <?php return [ 'multi' => array( 'user' => array( 'driver' => 'eloquent', 'model' => 'App\User', 'table' => 'users', ), 'admin' => array( 'driver' => 'database', 'model' => 'App\Admin', 'table' => 'tbl_admin_user', ) ), 'password' …

Member Avatar for tracyberge
0
620
Member Avatar for Dani

Everyone knows that PHP has such a bad rap for so much bad code being out there. I am a firm believer it is not a problem with PHP, itself, but rather the incredibly low barrier to entry (open source, readily available with nearly all web hosting packages, etc.) coupled …

Member Avatar for jkon
0
231
Member Avatar for borobhaisab

Hello There, Do you have any experience how to run a dns cache ? I want to learn how to run a dns cache and log what my users are browsing onto a webpage. In other words, the Log File should turn into a webpage be it with .html or …

Member Avatar for borobhaisab
0
18
Member Avatar for estherschindler

The job you’re applying for says, “Redis experience required.” Are you ready for the questions a hiring manager is likely to ask? Here’s [how to prepare for the job interview](https://redis.com/blog/redis-interview-questions/)... as inspired by Lord of the Rings. Nominally the article is written for someone getting answers ready for Redis-specific questions, …

Member Avatar for rproffitt
2
64
Member Avatar for estherschindler

I’m working on a blog post about this topic. I’d love to hear your suggestions! * What book(s) should someone read to come up to speed? * Why do you recommend that one? Note that the books don’t have to be peculiar to Redis. For example, someone suggested *Designing Data-Intensive …

Member Avatar for Vandiun
0
422
Member Avatar for Dani

When I run `getStats()` on my PHP instance, it results in the following: array ( '10.143.27.235:11211' => array ( '����' => '', 'pid' => 3602, 'uptime' => 49804, 'time' => 1663088274, 'version' => '1.5.22', 'libevent' => '2.1.8-stable', 'pointer_size' => 64, 'rusage_user' => 30.254434, 'rusage_system' => 62.188442000000002, 'max_connections' => 4096, 'curr_connections' …

Member Avatar for Dani
1
67
Member Avatar for Dani

I'm trying to get Memcached persistent connections to work. We currently have a cluster of four Memcached servers each with 2GB of RAM, and four web servers. My code looks like this: public function __construct() { global $config; $this->cache = new Memcached('daniweb'); if ($this->cache->isPristine()) { $this->cache->setOptions(array( Memcached::OPT_NO_BLOCK => true, Memcached::OPT_BUFFER_WRITES …

Member Avatar for Dani
0
1K
Member Avatar for Dani

Here is the function that I use here at DaniWeb to manage flood control. It keeps track of how often a specific user or IP address is making a request, and increments a counter. If there have been no requests after 5 minutes, the counter resets to 0. It returns …

Member Avatar for Dani
4
472
Member Avatar for Dani

This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side …

0
271
Member Avatar for dian_5

QuickRedis is a free forever Redis visual management tool. It supports direct connection, sentinel, and cluster mode, supports multiple languages, supports hundreds of millions of keys, and has an amazing UI. Supports both Windows and Mac platform. Download url: https://github.com/quick123official/quick_redis_blog

Member Avatar for Dani
0
52
Member Avatar for Dani

Our CSS and JS files are not being re-downloaded by web browsers when we update them. The response headers look like this: cache-control: max-age=7776000 content-encoding: gzip content-type: text/css; charset=UTF-8 date: Sat, 01 Feb 2020 02:41:59 GMT etag: W/"5e34c19d-68a08" expires: Fri, 01 May 2020 02:41:59 GMT last-modified: Sat, 01 Feb 2020 …

0
922
Member Avatar for syria718

<?php include 'ProcessDAO.php'; $dest=""; if(isset($_POST['login'])){ session_start(); // i get an error in this line !! $_SESSION['status']='online'; $_SESSION['breadcrumb']='home'; $pro = new ProcessDAO(); $dest = $pro->LogIn($_POST['username'],$_POST['password']); }else{ session_start(); $dest ="Location: ../index.php"; session_destroy(); } header($dest); ?> guyss can you help me out because in my Login.PHP file when i login i always get …

Member Avatar for Dani
0
8K
Member Avatar for Dani

I'm getting ` Session: Error while trying to free lock for ci_session` show up in the error log a couple times a minute, sometimes, and every 15 minutes other times. Using Redis for sessions. It's not happening on a different server that has almost the same code base and is …

Member Avatar for Dani
0
4K
Member Avatar for jkon

The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 …

Member Avatar for Trasser
1
2K
Member Avatar for iqlas

Laravel App checks redis database for data pushed by 3rd Party. Laravel Scheduler runs artisan command `php artisan check:redis` every 10 mins. I am expecting about 20k records to be checked every hour at peak times. Please also suggest me if my whole approach as a whole is flawed. 1. …

0
269
Member Avatar for davy_yg

Hello, I have a website that I built after editing it requires the user to clear browser cache to see the updated website. My question is does it requires everyone who have open the website for the first to clear browser cache to see the updated? What if the first …

Member Avatar for KushMishra
0
248
Member Avatar for SimonIoa

Hello, i want to cache embedded urls -YouTube, Vimeo- photos and videos so that i could reduce bandwidth usage and server load for my website. How can i help my website to do that? I know that browsers cache information `https://en.wikipedia.org/wiki/Web_cache`. Is there something i can to do to make …

Member Avatar for cereal
0
372
Member Avatar for Saqlainz

Cache in local storage of browsers gets cleared when website page redirects from AliPay payment website. This is happening in some computers and working fine in some. From my website user selects AliPay payment method then user is redirected to payment website and on successful payment is being redirected back …

Member Avatar for rproffitt
0
496
Member Avatar for Dani

Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control …

Member Avatar for cereal
0
767
Member Avatar for developer707

Hello, Recently I am dealing with bad performance in an php application that I have build, googling this issue I found out that using services like memcached you can archive a huge performance improvements. The weird thing comes when I try to find a very good and detailed example I …

Member Avatar for Dani
0
647
Member Avatar for gentlemedia

I've noticed the last couple of weeks that a hard-refresh won't clear the cache anymore in Chrome... well to me and two clients of mine (we're all on a Mac by the way). Not sure either if there was an update to Chrome recently which might cause this now. Did …

Member Avatar for rproffitt
0
573
Member Avatar for cjohnweb

Hi there, I'm a long time PHP programmer, 6 month newb python developer, but entirely new to git and gitlab. I've spent 2 solid work days trying to solve this issue, I've chatted with others in chat rooms, all to no avail. I'm not certain where I should post this …

Member Avatar for Jorge_10
0
2K
Member Avatar for pritaeas

You have some serious query/caching issues. Times vary but slow nonetheless. Finder -> My Bookmarks Page generated in 26.1996 seconds with 8 database queries and 7 memcached requests using 6.01MB of memory Latest Posts Page generated in 16.5247 seconds with 5 database queries and 6 memcached requests using 4.71MB of …

Member Avatar for Dani
0
252
Member Avatar for Tinnin

Hi All, I'm trying to set up an application cache for offline viewing. I'm using a custom built mvc framework. I'm having trouble getting anything to work regarding the application cache. It's as though the .appcache file isn't even being picked up. My set up is as follows: referencing the …

0
197
Member Avatar for cjohnweb

Hello! I'm working on a program at work for a device we are building, it's a device that (basically) in real-time reads in sensors, makes decisions about said data, and performs output. I have a loop that runs, and then calculates how long to sleep, so we can get as …

Member Avatar for vegaseat
0
363
Member Avatar for Mike Askew

Hi All We are having an issue where a WSDL is loading another WSDL into it when we call it. This call takes a while on the first call which normally causes failures across the application during testing. One option we are looking into is pre-caching the WSDL in IIS …

1
306
Member Avatar for mike_2000_17

This tutorial is the first time I write about coding techniques for improving the performance of software. This is going to be a step-by-step journey through a real example, with real benchmark results at every step so that you can see the effect of the different optimization techniques. And as …

Member Avatar for NathanOliver
7
2K
Member Avatar for Joel100

As we're considering start using Redis to manage our software cache, I came across this article http://www.stackify.com/implementing-cache-tagging-with-redis/ . Does anyone else have an experience with such type of implementation?

Member Avatar for Dani
0
56
Member Avatar for KnifeDarky

Hello, so I'm completely re-designing and updating files on the website, but the problem is, that everytime I change e.g. index.html file the website stays the same. I think that it has something to do with the browser's cache. It happens more often on Firefox, but I just hit ctrl+f5 …

Member Avatar for KnifeDarky
0
253

The End.